import {
	deleteRequest,
	getRequest,
	postRequest,
} from '../request.js'

export const list = (params) => {
	return getRequest('/list', params)
}

export const getCount = (params) => {
	return getRequest('/message/getCount', params)
}

export const page = (params) => {
	return getRequest('/messages', params)
}

export const create = (params) => {
	return postRequest('/message/create', params)
}

export const deleteChat = (params) => {
	return deleteRequest('/deleteChat', params)
}

